package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * App版本更新对象 jiajia_app_version
 * 
 * @author knd
 * @date 2021-10-29
 */
public class JiajiaAppVersion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /**类型 0 用户端 1社工端 2其他*/
    private Integer type;

    /** 路径 */
    @Excel(name = "路径")
    private String path;

    /** 版本号 */
    @Excel(name = "版本号")
    private Long versionCode;

    /** 版本名称 */
    @Excel(name = "版本名称")
    private String versionName;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 平台 android或者ios */
    @Excel(name = "平台 android或者ios")
    private String platform;

    /** 是否强制更新 */
    @Excel(name = "是否强制更新")
    private Long isMustUpdate;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPath(String path) 
    {
        this.path = path;
    }

    public String getPath() 
    {
        return path;
    }
    public void setVersionCode(Long versionCode) 
    {
        this.versionCode = versionCode;
    }

    public Long getVersionCode() 
    {
        return versionCode;
    }
    public void setVersionName(String versionName) 
    {
        this.versionName = versionName;
    }

    public String getVersionName() 
    {
        return versionName;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPlatform(String platform) 
    {
        this.platform = platform;
    }

    public String getPlatform() 
    {
        return platform;
    }
    public void setIsMustUpdate(Long isMustUpdate) 
    {
        this.isMustUpdate = isMustUpdate;
    }

    public Long getIsMustUpdate() 
    {
        return isMustUpdate;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("path", getPath())
            .append("versionCode", getVersionCode())
            .append("versionName", getVersionName())
            .append("title", getTitle())
            .append("content", getContent())
            .append("platform", getPlatform())
            .append("isMustUpdate", getIsMustUpdate())
            .append("addtime", getAddtime())
            .toString();
    }
}
